<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>邮件</title>
    <style>
        .context{
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: space-between;
            border-top: 5px solid #9373EE;
            width: 500px;
            height: 600px;
            margin: 0 auto;
            box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2);
        }

        @media screen and (max-device-width: 500px) {
            .context{
                width: 500px;
                height: 600px;
            }
        }

        .code{
            color: #9373EE;
            font-size: 30px;
            font-weight: bolder;
            width: 60%;
            background-color: #fbfafe;
            text-align: center;
            height: 50px;
        }
        .info{
            margin-top: 50px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: space-around;
            height: 30%;
        }
        .info1{
            font-size: 40px;
            font-weight: bolder;
        }
        .info2{
            font-size: 25px;
        }
        .bot{
            font-size: 10px;
            color: #9E9E9E;
            display: flex;
            flex-direction: column;
            align-items: center;
            height: 30%;
            /*margin-bottom: 40px;*/
        }
        .bot div{
            margin: 5px;
        }
        .bot div:first-child{
            font-weight: bold;
            font-size: 15px;
        }
    </style>
</head>
<body>
    <div class="context">
        <div class="info">
            <div class="info1">小智学习&nbsp;邮箱账号验证码</div>
            <div class="info2"> 你正在进行邮箱验证操作，验证码为:</div>
        </div>
        <div class="code" th:text="${emailCode}">test</div>
        <div class="bot">
            <div>验证码5分钟内有效</div>
            <div>如非本人操作</div>
            <div>转给他人将导致账号被盗和个人信息泄漏，谨防诈骗</div>
        </div>
    </div>
</body>
</html>
